package com.dd.stack.sql.optimize.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 患者就诊记录表
 * </p>
 *
 * @author liuxianmeng
 * @since 2025-08-12
 */
@Getter
@Setter
@TableName("medical_record")
public class MedicalRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 病历ID，主键
     */
    @TableId(value = "mr_id", type = IdType.AUTO)
    private Long mrId;

    /**
     * 患者ID，外键
     */
    private Long patiId;

    /**
     * 主治医生ID，外键
     */
    private Integer docId;

    /**
     * 诊断结果
     */
    private String mrDiagnosis;

    /**
     * 就诊日期
     */
    private LocalDate mrVisitDate;

    /**
     * 是否危重病例（0否1是）
     */
    private Boolean mrIsCritical;

    /**
     * 治疗费用
     */
    private BigDecimal mrCost;
}
